package com.dachuang.canjiren.mapper;

import com.dachuang.canjiren.entity.Banner;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface BannerMapper {

    /**
     * 插入一个轮播图
     * @param banner
     * @return
     */
    int insertBanner(Banner banner);


    /**
     * 查询最近五条轮播图
     * @return
     */
    List<Banner> selectList();
}
